package com.qf.shop.system.api;

import com.qf.shop.common.core.constants.ModuleConstants;
import com.qf.shop.system.api.impl.PromotionServiceImpl;
import com.qf.shop.system.dto.PromotionDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(
        value = ModuleConstants.SHOP_SYSTEM,
        path = "/promotion",
        contextId = "promotion",
        fallback = PromotionServiceImpl.class
)
public interface PromotionService {

    @GetMapping("/limitList")
    public List<PromotionDto> limitList();
}
